package com.dao;

import com.model.Role;
import com.model.User;

import java.util.List;

public interface UserMapper {
    int deleteByPrimaryKey(Integer userid);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer userid);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    User queryUserByUserName(String username);

    User selectByEmail(String registerEmail);


    List<User> selectAll();

    int insertIntoUserRoleByUserId(Integer userid);
}